package com.example.demo.common.utils;

import io.swagger.models.auth.In;

/**
 * 常量类
 * @author haocj
 */
public class Constants {

    /**
     * 删除标记
     */
    public static final String DEL_FLAG="0";

    public static final String LOGIN_FLAG_0= "0";
    public static final String LOGIN_FLAG = "1";

    /**
     * Ajax
     */
    public  static final Integer SUCCESS  = 0;
    public  static final Integer ERROR  = -1;

    /**
     * 禁止登录
     */
    public  static final Integer RESTRICTED_LOGIN  = -2;

    public  static final String SUCCESS_MSG = "success";
    public  static final String ERROR_MSG = "error";

    /**
     * 用户
     */
    public  static final String  CURRENT_USER  = "loginUser";
    public  static final String  SUPER_ADMIN  = "1";


    /**
     * shiro
     */
    public static final String CURRENT_ENABLED = "captchaEnabled";
    public static final String CURRENT_TYPE = "captchaType";
    public static final String CURRENT_VALIDATECODE = "validateCode";
    public static final String CURRENT_CAPTCHA = "captcha";
    public static final String CAPTCHA_ERROR = "captchaError";
    public static final String KAPTCHA_SESSION_KEY = "KAPTCHA_SESSION_KEY";
    public static final String SHIRO_KEY = "SHIRO_KEY";

    public static final String USER_CACHE = "USER_CACHE_";
    public static final String USER_ROLE_CACHE = "USER_ROLE_CACHE_";
    public static final String USER_PERMISSION_CACHE = "USER_PERMISSION_CACHE_";

}
